<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

	<script src="/public/jquery-2.1.1.min.js"></script>
    <link rel="stylesheet" href="/public/tab.css">
    <script src="/public/tab.js"></script>
</head>


<body>
    <ul class="tab">
        <li class="cur">店铺日销售数据</li>
        <li >行业大盘数据</li>
        <li>店铺核心指标</li>
        <li >货品流动指标</li>
        <li >客户行为指标</li>
        <li>页面质量指标</li>
        <li >免费流量指标</li>
        <li >自主流量指标</li>
        <li>付费流量指标</li>
        <li >流量比例情况</li>
        <li >DSR评分指标</li>
        <li>客户服务指标</li>
    </ul>
    <div class="box">
        <div class="left">
                <table border="1" >
                        <thead >
                                <tr class="one">
                                    <th >日期</th>
<!--                                    <th >星期</th>-->
                                    <th >活动情况</th>
                                </tr>
                        </thead>
                        <tbody>
							<?php foreach($result as $ke => $va){ ?>
								<tr>
									<td><?php echo $va['date_time']; ?></td>
<!--									<td>--><?php //echo $va['date_time']; ?><!--</td>-->
									<td><?php echo $va['activity_status']; ?></td>
								</tr>
							<?php } ?>
                        </tbody>
                </table>
        </div>
        <div class="right">
        <div class="right-content">
            <div>
                <table border="1">
                    <thead>
                        <tr class="tow">
                            <th>销售额</th>
                            <th>预回款金额</th>
                            <th>销售额对比昨日</th>

                            <th>正价货品销售额</th>
                            <th>正价货品折扣率</th>

                            <th>特价货品销售额</th>
                            <th>特价货品折扣率</th>
                        </tr>
                    </thead>
                    <tbody>
						<?php foreach($result as $ke => $va){ ?>
							<tr>
								<td><?php echo $va['sales']; ?></td>
								<td><?php echo $va['ready_return_amt']; ?></td>
								<td><?php echo $va['sale_contrast_yesterday']; ?></td>
								<td><?php echo $va['price_item_sale']; ?></td>
								<td><?php echo $va['price_discount']; ?></td>
								<td><?php echo $va['on_sale_volume']; ?></td>
								<td><?php echo $va['on_sale_discount']; ?></td>
							</tr>
						<?php } ?>
                    </tbody>
                </table>
            </div>
            <div>
            <table border="1">
                    <thead>
                        <tr class="tow">
                            <th>大盘访客数</th>
                            <th>对比昨日升降</th>
                            <th>大盘收藏比</th>
                            <th>自身收藏比</th>
                            <th>大盘加购比</th>
                            <th>自身加购比</th>
                            <th>自身搜索趋势</th>
                        </tr>
                    </thead>
                    <tbody>
						<?php foreach($result as $ke => $va){ ?>
							<tr>
								<td><?php echo $va['market_visitors']; ?></td>
								<td><?php echo $va['compare_yesterday_rising_lowering']; ?></td>
								<td><?php echo $va['market_collect']; ?></td>
								<td><?php echo $va['oneself_collect']; ?></td>
								<td><?php echo $va['market_plus']; ?></td>
								<td><?php echo $va['onself_plus']; ?></td>
								<td><?php echo $va['onself_search_trend']; ?></td>
							</tr>
						<?php } ?>
                    </tbody>
                </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>全店UV</th>
                                    <th>流量对比昨日</th>
                                    <th>客单价</th>
                                    <th>转化率</th>
                                    <th>转化对比昨日</th>
                                    <th>UV价值</th>
                                </tr>
                            </thead>
                            <tbody>
                				<?php foreach($result as $va) { ?>
									<tr>
										<td><?php echo $va['store_uv']; ?></td>
										<td><?php echo $va['flow_contrast_yesterday']; ?></td>
										<td><?php echo $va['customer_price']; ?></td>
										<td><?php echo $va['conversion']; ?></td>
										<td><?php echo $va['conversion_contrast_yesterday']; ?></td>
										<td><?php echo $va['uv_value']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div >
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>支付商品数</th>
                                    <th>全店宝贝数</th>
                                    <th>动销率</th>
                                    <th>消化率</th>
                                    <th>正价货品支付商品数</th>
                                    <th>正价货品上架数</th>
                                    <th>正价货品动销率</th>
                                    <th>正价货品消化率</th>
                                    <th>特价货品支付商品数</th>
                                    <th>特价货品上架数</th>
                                    <th>特价货品动销率</th>
                                    <th>特价货品消化率</th>
                                    <th>正价货品销售金额占比</th>
                                    <th>特价货品销售金额占比</th>
                                </tr>
                            </thead>
                            <tbody>
                				<?php foreach ($result as $ke => $value) { ?>
									<tr>
										<td><?php echo $va['pay_item']; ?></td>
										<td><?php echo $va['store_item']; ?></td>
										<td><?php echo $va['rate_of_pin']; ?></td>
										<td><?php echo $va['digestibility']; ?></td>
										<td><?php echo $va['price_pay_item']; ?></td>
										<td><?php echo $va['price_item_putaway']; ?></td>
										<td><?php echo $va['price_rate_of_pin']; ?></td>
										<td><?php echo $va['price_digestibility']; ?></td>
										<td><?php echo $va['on_sale_pay_item']; ?></td>
										<td><?php echo $va['on_sale_item_putaway']; ?></td>
										<td><?php echo $va['on_sale_rate_of_pin']; ?></td>
										<td><?php echo $va['on_sale_digestibility']; ?></td>
										<td><?php echo $va['price_sale_proportion']; ?></td>
										<td><?php echo $va['on_sale_sale_proportion']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>成交件数</th>
                                    <th>成交人数</th>
                                    <th>人均件数</th>
                                    <th>收藏加购转化</th>
                                    <th>加购（件）</th>
                                    <th>加购（人）</th>
                                    <th>加购比（人）</th>
                                    <th>加购成本</th>
                                    <th>收藏件数</th>
                                    <th>收藏人数</th>
                                    <th>收藏比（人）</th>
                                    <th>收藏成本</th>
                                    <th>店铺收藏人数</th>
                                </tr>
                            </thead>
                            <tbody>
                				<?php foreach($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['done_num']; ?></td>
										<td><?php echo $va['done_buy']; ?></td>
										<td><?php echo $va['per_capita_num']; ?></td>
										<td><?php echo $va['collect_plus_conversion']; ?></td>
										<td><?php echo $va['plus_num']; ?></td>
										<td><?php echo $va['plus_buy']; ?></td>
										<td><?php echo $va['plus_rate']; ?></td>
										<td><?php echo $va['plus_cost']; ?></td>
										<td><?php echo $va['collect_num']; ?></td>
										<td><?php echo $va['collect_buy']; ?></td>
										<td><?php echo $va['collect_rate']; ?></td>
										<td><?php echo $va['collect_cost']; ?></td>
										<td><?php echo $va['store_collect_buy']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>跳失率</th>
                                    <th>停留时长</th>
                                    <th>全店PV</th>
                                    <th>人均访问深度</th>
                                    <th>店铺件数转化率</th>
                                </tr>
                            </thead>
                            <tbody>
                				<?php foreach ($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['miss_rate']; ?></td>
										<td><?php echo $va['stay_time']; ?></td>
										<td><?php echo $va['store_pv']; ?></td>
										<td><?php echo $va['per_capita_visit_depth']; ?></td>
										<td><?php echo $va['store_conversion']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>手淘搜索</th>
                                    <th>手淘搜索转化率</th>
                                    <th>搜索占比全店流量</th>
                                    <th>淘内免费其他</th>
                                    <th>淘内免费其他</th>
                                    <th>免费占比全店流量</th>
                                    <th>手淘首页</th>
                                    <th>手淘首页转化率</th>
                                    <th>手淘占比全店流量</th>
                                    <th>总占比全店流量</th>
                                </tr>
                            </thead>
                            <tbody>
								<?php foreach ($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['shoutao_search']; ?></td>
										<td><?php echo $va['shoutao_search_conversion']; ?></td>
										<td><?php echo $va['search_ratio_store_flow']; ?></td>
										<td><?php echo $va['shoutao_free_other']; ?></td>
										<td><?php echo $va['free_other_conversion']; ?></td>
										<td><?php echo $va['free_ratio_store_flow']; ?></td>
										<td><?php echo $va['shoutao_home']; ?></td>
										<td><?php echo $va['shoutao_home_conversion']; ?></td>
										<td><?php echo $va['shoutao_ratio_store_flow']; ?></td>
										<td><?php echo $va['total_ratio_store_flow']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>购物车</th>
                                    <th>购物车转化率</th>
                                    <th>购物车占比全店流量</th>
                                    <th>我的淘宝</th>
                                    <th>我的淘宝转化率</th>
                                    <th>占比全店流量</th>
                                    <th>总占比全店流量</th>
                                </tr>
                            </thead>
                            <tbody>
								<?php foreach ($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['shopping_trolley']; ?></td>
										<td><?php echo $va['shopping_trolley_conversion']; ?></td>
										<td><?php echo $va['shopping_trolley_ratio_store_flow']; ?></td>
										<td><?php echo $va['my_taobao']; ?></td>
										<td><?php echo $va['my_taobao_conversion']; ?></td>
										<td><?php echo $va['my_taobao_ratio_store_flow']; ?></td>
										<td><?php echo $va['my_taobao_total_ratio_store_flow']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>直通车花费</th>
                                    <th>直通车</th>
                                    <th>直通车UV成本</th>
                                    <th>收藏加购比例</th>
                                    <th>收藏加购成本</th>
                                    <th>直通车转化率</th>
                                    <th>直通车成交额</th>
                                    <th>直通车当日ROI</th>

                                    <th>钻展花费</th>
                                    <th>智钻</th>
                                    <th>钻展UV成本</th>
                                    <th>收藏加购比例</th>
                                    <th>收藏加购成本</th>
                                    <th>钻展转化率</th>
                                    <th>钻展成交额</th>
                                    <th>钻展当日ROI</th>

                                    <th>总花费（含品销宝、淘客）</th>
                                    <th>花费占比销售额</th>
                                    <th>花费占比预回款</th>
                                    <th>付费流量占比全店流量</th>
                                </tr>
                            </thead>
                            <tbody>
								<?php foreach ($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['through_train_consume']; ?></td>
										<td><?php echo $va['through_train']; ?></td>
										<td><?php echo $va['through_train_uv_cost']; ?></td>
										<td><?php echo $va['through_train_collect_plus_rate']; ?></td>
										<td><?php echo $va['through_train_collect_plus_cost']; ?></td>
										<td><?php echo $va['through_train_conversion']; ?></td>
										<td><?php echo $va['through_train_turn_volume']; ?></td>
										<td><?php echo $va['through_train_roi']; ?></td>
										<td><?php echo $va['CPM_consume']; ?></td>
										<td><?php echo $va['zhizuan']; ?></td>
										<td><?php echo $va['CPM_uv_cost']; ?></td>
										<td><?php echo $va['CPM_collect_plus_rate']; ?></td>
										<td><?php echo $va['CPM_collect_plus_cost']; ?></td>
										<td><?php echo $va['CPM_conversion']; ?></td>
										<td><?php echo $va['CPM_turn_volume']; ?></td>
										<td><?php echo $va['CPM_roi']; ?></td>
										<td><?php echo $va['total_consume']; ?></td>
										<td><?php echo $va['consume_ratio_sales']; ?></td>
										<td><?php echo $va['consume_ratio_advances_on_sales']; ?></td>
										<td><?php echo $va['pay_flow_ratio_store_flow']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>新访客</th>
                                    <th>老访客</th>
                                </tr>
                            </thead>
                            <tbody>
                				<?php foreach($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['new_visitor']; ?></td>
										<td><?php echo $va['old_visitor']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>描述</th>
                                    <th>较同行</th>
                                    <th>服务</th>
                                    <th>较同行</th>
                                    <th>物流</th>
                                    <th>较同行</th>
                                    <th>DSR负面评价数</th>
                                </tr>
                            </thead>
                            <tbody>
								<?php foreach($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['describe']; ?></td>
										<td><?php echo $va['desc_contrast_peer']; ?></td>
										<td><?php echo $va['service']; ?></td>
										<td><?php echo $va['service_contrast_peer']; ?></td>
										<td><?php echo $va['logistics']; ?></td>
										<td><?php echo $va['logistics_contrast_peer']; ?></td>
										<td><?php echo $va['dsr_negative_appraise']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
            <div>
                    <table border="1">
                            <thead>
                                <tr class="tow">
                                    <th>退款笔数</th>
                                    <th>退款笔数</th>
                                    <th>退款率</th>

                                    <th>客服咨询量</th>
                                    <th>客服销售额</th>
                                    <th>客服成功率</th>
                                    <th>客服回复率</th>
                                    <th>平均响应时间</th>
                                    <th>慢响应人数</th>
                                    <th>长接待人数</th>
                                </tr>
                            </thead>
                            <tbody>
								<?php foreach($result as $ke => $va) { ?>
									<tr>
										<td><?php echo $va['refund_num']; ?></td>
										<td><?php echo $va['refund_amt']; ?></td>
										<td><?php echo $va['refund_rate']; ?></td>
										<td><?php echo $va['customer_service_consultation']; ?></td>
										<td><?php echo $va['customer_service_sale']; ?></td>
										<td><?php echo $va['customer_service_success']; ?></td>
										<td><?php echo $va['customer_service_reversion_rate']; ?></td>
										<td><?php echo $va['avg_respond_time']; ?></td>
										<td><?php echo $va['slow_respond_num']; ?></td>
										<td><?php echo $va['long_reception_num']; ?></td>
									</tr>
								<?php } ?>
                            </tbody>
                        </table>
            </div>
        </div>
    </div>
</div>
    
</body>
</html>
